package cn.iocoder.yudao.module.signature.controller.admin.application.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 应用 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ApplicationInfoRespVO {

    @Schema(description = "应用id", requiredMode = Schema.RequiredMode.REQUIRED, example = "938")
    @ExcelProperty("应用id")
    private Long id;

    @Schema(description = "图标地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("图标地址")
    private String iconImg;

    @Schema(description = "应用名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("应用名称")
    private String applicationName;

    @Schema(description = "应用版本", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("应用版本")
    private String applicationVersion;

    @Schema(description = "权重", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("权重")
    private Integer weight;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private String applicationStatus;

    @Schema(description = "归属类型 公共 个人", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("归属类型 公共 个人")
    private String belongType;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "应用地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @ExcelProperty("应用地址")
    private String applicationUrl;

    @Schema(description = "包名", requiredMode = Schema.RequiredMode.REQUIRED, example = "26158")
    @ExcelProperty("包名")
    private String bundleId;

    @Schema(description = "应用大小", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("应用大小")
    private String applicationSize;

    @Schema(description = "签名工具标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("签名工具标识")
    private Integer signatureToolFlag;

    @Schema(description = "上传时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("上传时间")
    private LocalDateTime uploadTime;

    private String remark;
    private Integer consignmentFlag;

    @Schema(description = "创建人编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @Trans(type = TransType.SIMPLE, targetClassName = "cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO",
            fields = "nickname", ref = "updateName")
    private String updater;

    @Schema(description = "创建人名字", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建人")
    private String updateName;

    @Schema(description = "是否批量生成签名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String batchFlag;

    @Schema(description = "批量生成签名的个数", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer batchNum;

}